﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CampusTrade.Pojo
{
    [SugarTable("good")]
    public class Good
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
        [SugarColumn(ColumnName = "url")]
        public string Url { get; set; }
        [SugarColumn(ColumnName = "title")]
        public string Title { get; set; }
        [SugarColumn(ColumnName = "description")]
        public string Description { get; set; }
        [SugarColumn(ColumnName = "classification_id")]
        public long ClassificationId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Classification Classification { get; set; }
        [SugarColumn(ColumnName = "price")]
        public double Price { get; set; }
        [SugarColumn(ColumnName = "status")]
        public long StatusId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Status Status { get; set; }
        [SugarColumn(ColumnName = "type")]
        public int Type { get; set; }
        [SugarColumn(ColumnName = "user_id")]
        public long UserId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public User User { get; set; }

    }
}
